//
//  CacheManager.h
//  WYProject
//
//  Created by lbh on 2017/11/21.
//  Copyright © 2017年 WeiYeChuangTou. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface CacheManager : NSObject

/**
 归档
 @param obj 归档对象
 @param namePath 路径
 @return bool值
 */
+ (BOOL)archiveObj:(id)obj namePath:(NSString *)namePath;

/**
 解档
 @param namePath 路径
 @return 对象
 */
+ (id)unarchiveObj:(NSString *)namePath;

+ (BOOL)removeObj:(NSString *)namePath;



/**
 清除沙盒model

 @return bool
 */
+ (BOOL)removeAllDocumentDirectory;

///计算缓存数据
+ (NSInteger)getCachesSizeCount;

///清除缓存
+ (void)cleardDish;
@end
